//
//  ZBMoBanSevenTableviewCell.m
//  MoBan
//
//  Created by apple on 16/7/14.
//  Copyright © 2016年 apple. All rights reserved.
//

#import "ZBMoBanSevenTableviewCell.h"
@interface ZBMoBanSevenTableviewCell()
@property(nonatomic,strong)UIImageView *imageview;

@property(nonatomic,strong)UILabel *lable;
@property(nonatomic,strong)UILabel *detailLable;

@property(nonatomic,strong)UIButton *butten;
@end
@implementation ZBMoBanSevenTableviewCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self =[super initWithStyle:style reuseIdentifier:reuseIdentifier ]) {
        [self AddUI];
    }
    return self;
}
-(void)AddUI
{
    self.imageview = [[UIImageView alloc]init];
    self.imageview.image = [UIImage imageNamed:@"text.png"];
    [self.contentView addSubview:self.imageview];
    
    self.lable= [[UILabel alloc]init];
    self.lable.text = @"测试1";
    [self.contentView addSubview:self.lable];
    
    self.detailLable = [[UILabel alloc]init];
    self.detailLable.text = @"测试2";
    [self.contentView addSubview:self.detailLable];
    
    self.butten = [[UIButton alloc]init];
//    self.butten
    [self.contentView addSubview:self.butten];

}
-(void)layoutSubviews
{
    [super layoutSubviews];
    
    self.imageview.frame = CGRectMake(0, 0, KscrW, self.height-60*Kscr);
    
    self.lable.frame = CGRectMake(5*Kscr, self.imageview.bottom+5*Kscr, 200*Kscr, 20*Kscr);
    
    self.detailLable.frame = CGRectMake(5*Kscr, self.lable.bottom+5*Kscr, 200*Kscr, 20*Kscr);
    
    self.butten.frame = CGRectMake(self.width-60*Kscr, self.imageview.bottom+10*Kscr, 40*Kscr, 40*Kscr);

}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
